﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace Net.Model.Entities
{
    public class BasicModel
    {
        [Display(Name = "创建时间")]
        [SugarColumn(ColumnDescription = "创建时间")]
        [Required(ErrorMessage = "请输入{0}")]
        public DateTime CreationTime { get; set; }

        [Display(Name = "创建人")]
        [SugarColumn(ColumnDescription = "创建人", IsNullable = true)]
        public long? CreatorUserId { get; set; }

        [Display(Name = "删除人")]
        [SugarColumn(ColumnDescription = "删除人", IsNullable = true)]
        public long? DeleterUserId { get; set; }

        [Display(Name = "删除时间")]
        [SugarColumn(ColumnDescription = "删除时间", IsNullable = true)]
        public DateTime? DeletionTime { get; set; }

        [Display(Name = "是否删除")]
        [SugarColumn(ColumnDescription = "是否删除")]
        [Required(ErrorMessage = "请输入{0}")]
        public Boolean IsDeleted { get; set; }

        [Display(Name = "最后修改时间")]
        [SugarColumn(ColumnDescription = "最后修改时间", IsNullable = true)]
        public DateTime? LastModificationTime { get; set; }

        [Display(Name = "最后修改人")]
        [SugarColumn(ColumnDescription = "最后修改人", IsNullable = true)]
        public long? LastModifierUserId { get; set; }
    }
}
